package com.gec.it.entity;
import com.baomidou.mybatisplus.annotation.*;
import org.activiti.engine.task.IdentityLink;
import org.activiti.engine.task.Task;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 雄哥爱吃肉
 * @since 2022-01-10
 */
@TableName("HP_DOCTORS")
@KeySequence(value = "SEQ_HP_DOCTORS")
public class Doctors implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "DOC_ID",type = IdType.INPUT)
    private Integer docId;

    @TableField("DOC_NAME")
    private String docName;

    @TableField("DOC_DEPT_ID")
    private Integer docDeptId;

    @TableField("DOC_JOB_ID")
    private Integer docJobId;

    @TableField("DOC_PHOTO")
    private String docPhoto;

    @TableField("DOC_BASE")
    private Integer docBase;

    @TableField("DOC_TXT")
    private String docTxt;

    @TableField("DOC_PWD")
    private String docPwd;

    @TableField("DOC_SEX")
    private Integer docSex;

    @TableField(exist = false)
    private Depts dept;

    public void setDept(Depts dept) {
        this.dept = dept;
    }

    public Depts getDept() {
        return dept;
    }
    @TableField(exist = false)
    private Jobs job;

    public void setJob(Jobs job) {
        this.job = job;
    }

    public Jobs getJob() {
        return job;
    }

    //自己组装
    public String getUserkey(){
        return this.getDocId()+"_"+this.getDocName();
    }

    public Integer getDocId() {
        return docId;
    }

    public void setDocId(Integer docId) {
        this.docId = docId;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public Integer getDocDeptId() {
        return docDeptId;
    }

    public void setDocDeptId(Integer docDeptId) {
        this.docDeptId = docDeptId;
    }

    public Integer getDocJobId() {
        return docJobId;
    }

    public void setDocJobId(Integer docJobId) {
        this.docJobId = docJobId;
    }

    public String getDocPhoto() {
        return docPhoto;
    }

    public void setDocPhoto(String docPhoto) {
        this.docPhoto = docPhoto;
    }

    public Integer getDocBase() {
        return docBase;
    }

    public void setDocBase(Integer docBase) {
        this.docBase = docBase;
    }

    public String getDocTxt() {
        return docTxt;
    }

    public void setDocTxt(String docTxt) {
        this.docTxt = docTxt;
    }

    public String getDocPwd() {
        return docPwd;
    }

    public void setDocPwd(String docPwd) {
        this.docPwd = docPwd;
    }

    public Integer getDocSex() {
        return docSex;
    }

    public void setDocSex(Integer docSex) {
        this.docSex = docSex;
    }

    @Override
    public String toString() {
        return "Doctors{" +
        ", docId=" + docId +
        ", docName=" + docName +
        ", docDeptId=" + docDeptId +
        ", docJobId=" + docJobId +
        ", docPhoto=" + docPhoto +
        ", docBase=" + docBase +
        ", docTxt=" + docTxt +
        ", docPwd=" + docPwd +
        ", docSex=" + docSex +
        "}";
    }
}
